class CreateAttachments < ActiveRecord::Migration
  def self.up
    create_table :attachments, :force => true do |t|
      t.string :name, :null => false
      t.string :content_type, :null => false
      t.binary :data
      
      t.integer :entity_id, :null => false
      t.string :entity_type, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :attachments
  end
end
